#pragma once
#include<string>
#include "item.h"
using namespace std;

class file
{
public:

	static int read_init(string file_name="fmgrdata.txt");

	static void write_init(int, string file_name="fmgrdata.txt");

    static basic_item* read();

	static void write(basic_item*);

	static void close();

private:
	static fstream target;
};

